import router from "./index";
import { SETTINGS_PAGE } from "@/common/names";
import { localGet } from '@/store/dataStore'


router.beforeEach((to, from, next) => {

  
    if (!localStorage.getItem("machine") && to.name !== SETTINGS_PAGE) {
        next({
            name: SETTINGS_PAGE,
        });
    } else {
        next();
    }

});